package com.malty.common.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author Administrator
 * @TableName user_api_info
 */
@TableName(value = "user_api_info")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserApiInfo implements Serializable {
    private static final long serialVersionUID = 1L;
    private Integer id;
    private Long userId;
    private Long apiId;
    private Long availableCalls;
    private Long usedCalls;
    private Integer status;
    private Date createTime;
    private Date updateTime;

    public UserApiInfo(Long userId, Long apiId) {
        this.userId = userId;
        this.apiId = apiId;
    }
}